package paycheck;

public class Paycheck {

	private double wage;
	private double hours;

	public Paycheck(double wage, double h) {
		this.wage = wage;
		hours = h;
	}

	public double getSalaryPerWeek() {
		if (hours <= 40) {
			return hours * wage;
		} else {
			return 40 * wage + (hours - 40) * wage * 1.5;
		}
	}
}
